# 基础类型
int = 1
float = 1.0
str = "1"
bool = True
list = [1,2,3,4,5]
tuple = (1,2,3,4,5)
dict = {"name":"张三"}
set = {1,2,3,4,5}
# None = None
print(type(int))
print(type(float))
print(type(str))
print(type(bool))
print(type(list))
print(type(tuple))
print(type(dict))
print(type(set))
# print(type(None))

      
      
# 字符chuan符串 拼接新方法
a = 'abc'+ 'def'
print(a)
b = 'abc' * 3
print(b)

# 新注意的方法
c = 'abc''def'
cc = f'abc'f'{c}'
print(cc)
#拼接分隔开的长字符串时，这个功能特别实用：
text = ('Put several strings within parentheses '
        'to have them joined together.')
print(text)

prefix = 'Py'
# 这项功能只能用于两个字面值，不能用于变量或表达式：
a = prefix + 'thon'  # 不能,要么进行format()     要么使用f-string
print(a)
